package com.xzy.seckill.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xzy.seckill.pojo.entity.SeckillGoods;
import com.xzy.seckill.mapper.SeckillGoodsMapper;
import com.xzy.seckill.pojo.vo.SeckillGoodDetailVO;
import com.xzy.seckill.service.SeckillGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xzy
 * @since 2022-01-27
 */
@Service
public class SeckillGoodsServiceImpl extends ServiceImpl<SeckillGoodsMapper, SeckillGoods> implements SeckillGoodsService {

    @Override
    public IPage<SeckillGoodDetailVO> list(Page<SeckillGoodDetailVO> page) {
        return baseMapper.List(page);
    }

    @Override
    public SeckillGoodDetailVO getByid(Integer goodsId) {

        return baseMapper.getbyid(goodsId);
    }


}
